<template>
    <page-body>
        <view class="page">
            <view class="flex align-stretch benben-position-layout flex delayed_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex align-center justify-between flex-sub delayed_fd0_0'>
                    <view class='flex align-center delayed_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  delayed_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <text class='delayed_fd0_0_c1'>详情</text>
                    <view class='flex align-center delayed_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---flex布局flex布局开始-->
            <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout delayed_flex_1">
                <view class='flex flex-wrap align-center delayed_fd1_0'>
                    <image class='delayed_fd1_0_c0' mode="aspectFill" :src='yanshi.rider_avatar'></image>
                    <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
                        <view class='flex flex-wrap align-center delayed_fd1_0_c1_c0'>
                            <text class='delayed_fd1_0_c1_c0_c0'>{{yanshi.rider_name}}</text>
                            <view class='flex flex-wrap align-center'>
                                <template v-for="starNum in [1,2,3,4,5]">
                                    <image v-if="yanshi.score >= starNum" :key="starNum" class='delayed_star1fd1_0_c1_c0_c1' mode="aspectFit" :src='STATIC_URL+"63.png"'></image>
                                    <image v-else :key="starNum" class='delayed_star1fd1_0_c1_c0_c1' mode="aspectFit" :src='STATIC_URL+"62.png"'></image>
                                </template>
                            </view>
                            <text class='delayed_fd1_0_c1_c0_c2'>{{yanshi.score}}</text>
                            <text class='delayed_fd1_0_c1_c0_c3'>分</text>
                        </view>
                        <view class='flex flex-wrap align-center'>
                            <text class='delayed_fd1_0_c1_c1_c0'>已接</text>
                            <text class='delayed_fd1_0_c1_c1_c0'>{{yanshi.order_number}}</text>
                            <text class='delayed_fd1_0_c1_c1_c0'>单</text>
                        </view>
                    </view>
                </view>
            </view>

            <!---flex布局flex布局结束-->
            <!---flex布局flex布局开始-->
            <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout delayed_flex_2">
                <view class='flex flex-wrap align-center delayed_fd2_0'>
                    <text class='delayed_fd2_0_c0'>延时时长</text>
                    <text class='delayed_fd2_0_c0'>{{yanshi.delay_time}}</text>
                    <text class='delayed_fd2_0_c0'>分钟</text>
                </view>
                <text class='delayed_fd2_1'>{{yanshi.delay_reason}}</text>
                <view class='flex flex-wrap align-center delayed_fd2_2'>
                    <template v-for='(item,key0) in yanshi.delay_images'>
                        <view class='flex flex-wrap align-center delayed_fd2_2_c0' :key='key0'>
                            <image class='delayed_fd2_2_c0_c0' mode="aspectFill" :src='item' @tap.stop="multiImagePreview(item,yanshi.delay_images,'')"></image>
                        </view>
                    </template>

                </view>
                <text class='delayed_fd2_3'>{{yanshi.audit_time}}</text>
            </view>

            <!---flex布局flex布局结束-->


        </view>
    </page-body>
</template>
<script>
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},


        data() {
            return {
                "yanshi": {
                    "order_sn": "",
                    "order_type": "",
                    "rider_name": "",
                    "delay_time": "",
                    "delay_reason": "",
                    "delay_images": [],
                    "audit_time": "",
                    "rider_id": "",
                    "order_type_name": "",
                    "score": "",
                    "rider_avatar": "",
                    "order_number": ""
                },
                "aid": "",
                "order_aid": ""
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {
            let {
                aid,
                order_aid
            } = options
            if (aid !== undefined) this.aid = aid
            if (order_aid !== undefined) this.order_aid = order_aid
            this.getgx67295e055c37Func()
        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {

        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
            //查询延时申请详情
            async getgx67295e055c37Func() {
                //请求方法
                //数据验证

                let datayanshi = await this.$api.get(global.apiUrls.post667295e055c37, {
                    aid: this.aid
                });

                if (datayanshi.data.code != 1) {
                    this.$message.info(datayanshi.data.msg);
                    return
                }
                let infoyanshi = datayanshi.data;
                this.yanshi = infoyanshi.data

            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: rgba(246, 247, 249, 1);
        background-size: 100% auto;
    }

    .delayed_flex_0 {
        background: var(--benbenbgColor1);
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .delayed_fd0_0_c1 {
        font-size: 36rpx;
        font-weight: 500;
        color: var(--benbenFontColor0);
    }

    .delayed_fd0_0_c0_c0 {
        font-size: 32rpx;
        font-weight: 500;
        color: var(--benbenFontColor0);
    }

    .delayed_fd0_0_c0 {
        width: 180rpx;
        height: 88rpx;
    }

    .delayed_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
        height: 88rpx;
    }

    .delayed_flex_1 {
        background: var(--benbenbgColor1);
        margin: 24rpx 24rpx 24rpx 24rpx;
        background-size: 100% auto;
        border-radius: 16rpx;
    }

    .delayed_fd1_0_c1_c1_c0 {
        color: #999999;
        font-size: 28rpx;
        font-weight: 400;
        line-height: 40rpx;
    }

    .delayed_fd1_0_c1_c0_c3 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
        line-height: 33rpx;
        text-align: left;
        font-style: normal;
    }

    .delayed_fd1_0_c1_c0_c2 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
        line-height: 33rpx;
        text-align: left;
        font-style: normal;
        margin: 0rpx 0rpx 0rpx 10rpx;
    }

    .delayed_star1fd1_0_c1_c0_c1 {
        height: 26rpx;
        margin: 0rpx 5rpx 0rpx 0rpx;
        width: 26rpx;
    }

    .delayed_star1fd1_0_c1_c0_c1 {
        width: 26rpx;
        height: 26rpx;
        margin: 0rpx 5rpx 0rpx 0rpx;
    }

    .delayed_fd1_0_c1_c0_c0 {
        color: #333333;
        font-size: 32rpx;
        font-weight: 500;
        line-height: 45rpx;
        margin: 0rpx 15rpx 0rpx 0rpx;
        max-width: 220rpx;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .delayed_fd1_0_c1_c0 {
        margin: 0rpx 0rpx 14rpx 0rpx;
    }

    .delayed_fd1_0_c0 {
        width: 120rpx;
        height: 120rpx;
        border-radius: 60rpx;
        margin: 0rpx 16rpx 0rpx 0rpx;
    }

    .delayed_fd1_0 {
        padding: 32rpx 24rpx 32rpx 24rpx;
    }

    .delayed_flex_2 {
        background: var(--benbenbgColor1);
        margin: 0rpx 24rpx 24rpx 24rpx;
        background-size: 100% auto;
        border-radius: 16rpx;
    }

    .delayed_fd2_3 {
        color: #999999;
        font-size: 26rpx;
        font-weight: 400;
        line-height: 37rpx;
        margin: 0rpx 24rpx 0rpx 24rpx;
    }

    .delayed_fd2_2_c0_c0 {
        width: 152rpx;
        height: 152rpx;
        border-radius: 16rpx;
    }

    .delayed_fd2_2_c0 {
        margin: 0rpx 10rpx 18rpx 10rpx;
    }

    .delayed_fd2_2 {
        padding: 0rpx 14rpx 0rpx 14rpx;
    }

    .delayed_fd2_1 {
        margin: 24rpx 24rpx 24rpx 24rpx;
        color: #333333;
        font-size: 28rpx;
        font-weight: 400;
        line-height: 40rpx;
    }

    .delayed_fd2_0_c0 {
        color: #333333;
        font-size: 32rpx;
        font-weight: 600;
        line-height: 45rpx;
    }

    .delayed_fd2_0 {
        border-bottom: 1px solid #eee;
        padding: 24rpx 24rpx 24rpx 24rpx;
    }
</style>